#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2021/1/5 14:33
    Desc  :     URL编码解码
--------------------------------------
"""
from urllib import parse


class UrlParseUtils:

    def __init__(self):
        pass

    @staticmethod
    def urlUnquote(param: str):
        """
        url解码
        :param param:
        :return:
        """

        return parse.unquote(param)

    @staticmethod
    def urlQuote(param: str):
        """
        url编码
        :param param:
        :return:
        """

        return parse.quote(param)
